package com.hjf.javabean;

public class StudentOperator {
    private Student student = new Student();
    public StudentOperator(Student student){
        this.student = student;
    }

    public void printPass(){
        if(student.getScore()>=60){
            System.out.println(student.getName() + "学生成绩合格");
        }
        else {
            System.out.println(student.getName() + "学生成绩不合格");
        }
    }
}
